<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=1280, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit|ie-stand|ie-comp">
<title>精斗云云进销存</title>

<link rel="icon" href="/css/blue/img/favicon.png" type="image/x-icon">
<link href="css/comm.css" rel="stylesheet" type="text/css">
<link href="css/print.css?ver=201807121849" rel="stylesheet" type="text/css">

<link href="css/ui.min.css?ver=201807121849" rel="stylesheet">
<script src="//images.youshang.com/saas/scm/vip2_bj/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
<script src="//images.youshang.com/saas/scm/vip2_bj/js/common/libs/json3.min.js"></script>
<script src="/js/common/vue.js?ver=201807121849"></script>
<script src="/js/common/common.js?ver=201807121849"></script>
<script src="//images.youshang.com/saas/scm/vip2_bj/js/common/grid.js?ver=201807121849"></script>
<script src="//images.youshang.com/saas/scm/vip2_bj/js/common/plugins.js?ver=201807121849"></script>
<script src="//images.youshang.com/saas/scm/vip2_bj/js/common/plugins/jquery.dialog.js?self=true&ver=201807121849"></script>
<script type='text/javascript'>
  var _vds = _vds || [];
  window._vds = _vds;
  (function(){
    _vds.push(['setAccountId', '9bc3c61326fa7ba9']);
    (function() {
      var vds = document.createElement('script');
      vds.type='text/javascript';
      vds.async = true;
      vds.src = 'https://dn-growing.qbox.me/vds.js';
      var s = document.getElementsByTagName('script')[0];
      s.parentNode.insertBefore(vds, s);
    })();
  })();
</script>

<script type="text/javascript">
var DOMAIN = document.domain;
var WDURL = "";
var SCHEME= "blue";
try{
	var host = window.location.host;
		var domainDot = host.indexOf('.');
		var domain = host.substring(domainDot + 1,host.length);
		document.domain = domain;
}catch(e){
}
//ctrl+F5 增加版本号来清空iframe的缓存的
$(document).keydown(function(event) {
	/* Act on the event */
	if(event.keyCode === 116 && event.ctrlKey){
		var defaultPage = Public.getDefaultPage();
		var href = defaultPage.location.href.split('?')[0] + '?';
		var params = Public.urlParam();
		params['version'] = Date.parse((new Date()));
		for(i in params){
			if(i && typeof i != 'function'){
				href += i + '=' + params[i] + '&';
			}
		}
		defaultPage.location.href = href;
		event.preventDefault();
	}
});
</script>

<link href="css/bills.css" rel="stylesheet" type="text/css">
<style>
/*#barCodeInsert{margin-left: 10px;font-weight: 100;font-size: 12px;color: #fff;background-color: #B1B1B1;padding: 0 5px;border-radius: 2px;line-height: 19px;height: 20px;display: inline-block;}*/
/*#barCodeInsert.active{background-color: #23B317;}*/
#editBills{background: url(/css/img/edit.png);display: inline-block;width: 13px; height: 12px;}
#check_history{background: green; border-radius:10px 10px; width:80px; text-align:center;}
#check_history a{ color:#fff; }
.wrapper_con{overflow-y:auto; overflow-x:hidden;}
</style>
</head>

<body>
<div class="wrapper">
  <div class="mod-toolbar-top mr0 cf dn" id="toolTop"></div>
  <div class="bills cf">
    <div class="con-header">
      <dl class="cf">
        <dd class="mr20">
          <label><span class="red">*</span>供应商:</label>
          <span class="ui-combo-wrap" id="customer">
          <input type="text" name="" class="input-txt" autocomplete="off" value="" data-ref="date">
          <i class="ui-icon-ellipsis"></i></span></dd>
        <dd class="mr20">
          <label>单据日期:</label>
          <input type="text" id="date" class="ui-input ui-datepicker-input" value="2018-07-13">
        </dd>
        <dd class="mr20">
          <label>交货日期:</label>
          <input type="text" id="deliveryDate" class="ui-input ui-datepicker-input" value="2018-07-13">
        </dd>
        <dd id="classes" class="mr20">
          <label class="radio">
            <input type="radio" name="classes" value="150501">
            购货</label>
          <label class="radio">
            <input type="radio" name="classes" value="150502">
            退货</label>
        </dd>
        <!-- <dd id="identifier" style="float:right;">
          <label>单据编号:</label>
          <span id="number">CGDD20180713001</span></dd> -->
          <dd id="identifier" style="float:right">
            <label>单据编号:</label>
            <span id="number">CGDD20180713001</span>
            <i id="editBills"></i>
            <span class="ui-combo-wrap" id="numberAuto" style="display: none;">
              <i class="trigger"></i>
            </span>
          </dd>

      </dl>
      <hr class="hrcls" />
    </div>

    <div class="wrapper_con">
      <!-- <div class="cf mb10">
        <div class="fl">
          <span  id="config" class="ui-config"><a href="#" class="ui-icon-config-new"></a>列设置</span>
          <span><label>扫描枪录入</label><span id="barCodeInsert" class="close"><span class="ui-icon-circle"></span></span></span>
        </div>
        <div class="fr">
          <span class="circle-link-order linkToCheck"><a href="#" class="icon-link-order"></a>历史单据</span>
        </div>
      </div> -->
      <span id="config" class="ui-config"><a href="#" class="ui-icon-config-new"></a></span>
      <div class="grid-wrap">
        <table id="grid"></table>
        <div id="page"></div>
      </div>
      <div class="cf" id="bottomField">
      	<div class="fr" id="toolBottom"></div>
      </div>
      <div id="mark"></div>
    </div>

    <div class="con-footer cf">
      <div class="mb10">
        <textarea type="text" id="note" class="ui-input ui-input-ph">暂无备注信息</textarea>
      </div>
      <ul id="amountArea" class="cf">
        <li>
          <label>优惠率:</label>
          <input type="text" id="discountRate" class="ui-input" data-ref="deduction">%
        </li>
        <li>
          <label>优惠金额:</label>
          <input type="text" id="deduction" class="ui-input" data-ref="payment">
        </li>
        <li>
          <label>优惠后金额:</label>
          <input type="text" id="discount" class="ui-input ui-input-dis" data-ref="discountRate" disabled>
        </li>
      </ul>
      <ul class="dn">
          <li>
            <label id="paymentTxt">本次付款:</label>
            <input type="text" id="payment" class="ui-input">&emsp;
          </li>
          <li id="accountWrap" class="dn">
            <label>结算账户:</label>
            <span class="ui-combo-wrap" id="account" style="padding:0;">
            <input type="text" class="input-txt" autocomplete="off">
            <i class="trigger"></i></span><a id="accountInfo" class="ui-icon ui-icon-folder-open" style="display:none;"></a>
          </li>
          <li>
            <label>本次欠款:</label>
            <input type="text" id="arrears" class="ui-input ui-input-dis" disabled>
          </li>
          <li>
            <label>累计欠款:</label>
            <input type="text" id="totalArrears" class="ui-input ui-input-dis" disabled>
          </li>
      </ul>
      <ul id="user-field">
        <v-input v-for="(item, index) in udfData" :title="item.name" :type="item.type" v-model="item.value" :items="item.items" :metaid="item.metaId" :readonly="isChecked" :key="item.metaId"></v-input>
        <li class="udfLink">
          <v-user-field :transtype="transtype" :udfdata="udfData"></v-user-field>
        </li>
      </ul>
     <!--  <ul class="c999 cf">
        <li>
          <label>制单人:</label>
          <span id="userName"></span>
        </li>
        <li>
          <label>审核人:</label>
          <span id="checkName"></span>
        </li>
        <li>
          <label>录单时间:</label>
          <span id="createTime"></span>
        </li>
        <li>
          <label>最后修改时间:</label>
          <span id="modifyTime"></span>
        </li>
      </ul> -->
      <div class="cf fr">
        <a href="#" class="linkToCheck ui-btn-bill ui-btn-add mr20">历史单据</a>
        <a href="#" id="operaLog" class="ui-btn">操作日志</a>
      </div> 
    </div>


    <div id="initCombo" class="dn">
      <input type="text" class="textbox goodsAuto" name="goods" autocomplete="off">
      <input type="text" class="textbox storageAuto" name="storage" autocomplete="off">
      <input type="text" class="textbox unitAuto" name="unit" autocomplete="off">
      <input type="text" class="textbox priceAuto" name="price" autocomplete="off">
      <input type="text" class="textbox skuAuto" name="price" autocomplete="off">
    </div>
    <div id="storageBox" class="shadow target_box dn"></div>
    <div id="discountRateBox" class="shadow target_box dn"></div>
    <div id="goodsDiscountRateBox" class="shadow target_box dn"></div>
    <div id="deductionBox" class="shadow target_box dn"></div>
    <ul id="operaLogBox" class="shadow opera-log-box dn">
      <li>
        <span class="fl" style="margin-right: 50px;"><label>制单人：</label><span id="userName" style="margin-left: 12px;"></span></span>
      </li>
      <li>
        <span class="fl"><label>制单时间：</label><span id="createTime"></span></span>
      </li>
      <li>
        <span class="fl"><label>审核人：</label><span id="checkName" style="margin-left: 12px;"></span></span>
      </li>
      <li>
        <span class="fl"><label>审核时间：</label><span id="checkTime"></span></span>
      </li>
      <li>
        <span class="fl"><label>最后修改人：</label><span id="modifyName" style="margin-left: 12px;"></span></span>
      </li>
      <li>
        <span class="fl"><label>最后修改时间：</label><span id="modifyTime"></span></span>
      </li>
    </ul>
  </div>
</div>
<script src="/js/common/vue-components.js?ver=201807121849"></script>
<script src="/js/dist/purchaseOrder.js?ver=201807121849"></script>
</body>
</html>